import http from "@/utils/http"

// 新增购买运单
export function add_waybill(params) {
    return http.post('/by-waybill-message', params)
}
// 新增购买运单
export function put_waybill(params) {
    return http.put('/by-waybill-message', params)
}
// 购买运单列表
export function pageWaybill(params) {
    return http.post('/by-waybill-message/pageWaybill', params)
}
// 查看详情数据
export function waybill_messageInfo(params) {
    return http.get('/by-waybill-message/info/' +params)
}
// 查看询价数据
export function waybill_message(params) {
    return http.get('/by-waybill-message/'+params)
}
// 生成运单
export function waybill_messageAddbBuy(url,params) {
    return http.put('/by-waybill-message/add-buy/'+url,params)
}
// 提交数据 state 15 提交 45 修改已发货
export function waybill_state(url,params) {
    return http.get('/by-waybill-message/Waybill/'+url+'/'+params)
}
// 购买运单取消并退款
export function waybill_refund(params) {
    return http.get('/by-waybill-message/refund/'+params)
}
// 购买运单气泡
export function waybill_statecount() {
    return http.get('/by-waybill-message/statecount')
}
// 根据订单号下载运单
export function waybill_dowWay(params) {
    return http.blob('/by-waybill-message/dow-way/'+params)
}
